<%
=begin
apps: mongodb
platforms: kubernetes, tanzu-application-catalog
id: customize_new_instance
title: Customize a new instance
category: administration
weight: 20
=end %>

The <%= variable :catalog_name, :platform %> MongoDB&reg; image supports the use of custom scripts to initialize a fresh instance. In order to execute the scripts, two options are available:

* Specify them using the *initdbScripts* parameter as dict.

* Define an external Kubernetes ConfigMap with all the initialization scripts by setting the *initdbScriptsConfigMap* parameter. Note that this will override the previous option.

The allowed script extensions are *.sh* and *.js*.
